package com.chenjian.designpattern.adapter;

/**
 * 适配过程
 * <p>
 * 实现接口，引用对象
 *
 * @author TC2952
 */
public class DoAdapter implements Inter01 {

    private Inter02 inter02;

    public DoAdapter(Inter02 inter02) {
        this.inter02 = inter02;
    }

    /**
     * 执行转换过程
     *
     * @return
     */
    public String outAdapter() {
        String s = inter02.doS();
        return s + "-out";
    }
}
